<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends MY_Controller {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -  
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in 
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see http://codeigniter.com/user_guide/general/urls.html
	 */
	public function index()
	{
		$message[] ='"If you learn from defeat, you haven\'t really lost." - Zig Ziglar';
		$message[] ='"If a window of opportunity appears, don\'t pull down the shade." - Tom Peters';
		$message[] ='"If you want to live a happy life, tie it to a goal, not to people or things." - Albert Einstein';
		$message[] ='"Never ignore a gut feeling, but never believe that it\'s enough." - Robert Heller';
		$message[] ='Persistent questioning and healthy inquisitiveness are the first requisite for acquiring learning of any kind." - Gandhi';
		$message[] ='"Making good decisions is a crucial skill at every level." - Peter Drucker';
		$message[] ='"We make our own fortunes and call them fate." - Benjamin Disraeli';
		$message[] ='"In the midst of movement and chaos, keep stillness inside of you." - Deepak Chopra';
		$message[] ='"The way to get started is to quit talking and begin doing." - Walt Disney';
		$message[] ='"Action speaks louder than words but not nearly as often." - Mark Twain';
		$max = count($message)-1;
		$message_number = rand(0,$max);
		
		$this->view_data['system_message'] = $this->_msg('n',$message[$message_number]);
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */